tar xf ${DOWNLOADDIR}/shadow-4.18.0.tar.xz -C ${BUILDDIR}
pushd ${BUILDDIR}/shadow-4.18.0
	sed -i 's/groups$(EXEEXT) //' src/Makefile.in
	find man -name Makefile.in -exec sed -i 's/groups\.1 / /'   {} \;
	find man -name Makefile.in -exec sed -i 's/getspnam\.3 / /' {} \;
	find man -name Makefile.in -exec sed -i 's/passwd\.5 / /'   {} \;
	sed -e 's:#ENCRYPT_METHOD DES:ENCRYPT_METHOD YESCRYPT:' \
	    -e 's:/var/spool/mail:/var/mail:'                 \
	    -e '/PATH=/{s@/sbin:@@;s@/bin:@@}'                \
	    -i etc/login.defs
	./configure --sysconfdir=/etc --libdir=/usr/lib64 --build=${CROSS_HOST} --host=${CROSS_TARGET} \
				--with-group-name-max-length=32 --with-{b,yes}crypt --with-libbsd=no
	make ${JOBS}
	make DESTDIR=${SYSDIR}/sysroot exec_prefix=/usr install
	mkdir -pv ${SYSDIR}/sysroot/etc/default
popd
